package org.jeecg.modules.flowable.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.modules.flowable.controller.dto.FlowStartRequest;
import org.jeecg.modules.flowable.entity.TActMatterEntity;
import org.jeecg.modules.flowable.service.bo.Matter;
import org.jeecg.modules.flowable.service.bo.flow.FlowInst;

public interface MatterService {

    /**
     * 事项列表
     * @param matterName
     * @param matterType
     * @param argCurrPage
     * @param argPageSize
     * @return
     */
    public Page<Matter> queryMatterList(String matterName, String matterType, Integer argCurrPage, Integer argPageSize);

    /**
     * 保存
     * @param argTActMatterEntity
     * @return
     */
    public Matter save(TActMatterEntity argTActMatterEntity);

    /**
     * 启动流程
     * @param argFlowStartRequest FlowStartRequest
     * @return
     */
    public FlowInst flowStart(FlowStartRequest argFlowStartRequest);

    /**
     * 删除事项
     * @param argId
     */
    public void delete(String argId);
}
